//
//  RoundedSearchBar.h
//  XMJJ_zml
//
//  Created by 杨何华 on 2025/5/9.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface RoundedSearchBar : UIView<UITextFieldDelegate>

@property (nonatomic, strong) UITextField *textField;
@property (nonatomic, strong) UIButton *searchButton;
@property (nonatomic, strong) UIColor *tintColor;
@property (nonatomic, copy) void(^searchAction)(NSString *searchText);
@property (nonatomic, strong) NSString *searchText;


// 初始化方法
- (instancetype)initWithFrame:(CGRect)frame;

// 设置搜索框的圆角半径
- (void)setCornerRadius:(CGFloat)radius;

// 设置搜索框的边框颜色和宽度
- (void)setBorderColor:(UIColor *)color width:(CGFloat)width;

@end

NS_ASSUME_NONNULL_END
